package com.vinobase.authentication;
//http://blog.springsource.com/2010/08/02/spring-security-in-google-app-engine/

import org.springframework.security.core.GrantedAuthority;

public enum AppRole implements GrantedAuthority {
    ADMIN (0,"Admin"),
    NEW_USER (1,"New User"),
    USER (2, "User"),
    DISABLED (3, "Disabled");

    private int id;
    private String description;


    AppRole(int id, String description) {
        this.id = id;
        this.description = description;
    }

    public int getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public String getAuthority() {
        return toString();
    }

    public String toString(){
        return description;
    }
}

